/**
 * 
 */
package com.davidstop.model;

import junit.framework.TestCase;

/**
 * @author david
 *
 */
public class TestTopic extends TestCase {
	private Item item;
	private Topic topic;
	public void setUp() throws Exception{
		Item item = new Item();
		Topic topic = new Topic();
	}
	public void testAddItem(){
		boolean flag= topic.addItem(item);
		assertTrue(flag);
	}
	
	public void testRemoveItem(){
		boolean flag = topic.removeItem(item);
		assertTrue(!flag);
		topic.addItem(item);
		flag = topic.removeItem(item);
		assertTrue(flag);
	}
}
